package com.example.gulimall.rember.controller;

import com.example.gulimall.rember.feign.OrderFeignService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>@description:   </p>
 * <p>@author: JGD </p>
 * <p>@create: 2020/4/15 9:20 </p>
 * <p>@version : 2.0.0
 **/
@RefreshScope
@RequestMapping("rember")
@RestController
public class RemberController {
    @Value("${user.nnn}")
    private String name;

    @Resource
    private OrderFeignService orderFeignService;
    @GetMapping("add")
    public String add(){
        String info = orderFeignService.info();
        return info;
    }
    @GetMapping("update")
    public String update(){
        return name;
    }
}
